package com.example.lotteryticketdev.tool;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;

public class MyClose {

    public static void closeIO(BufferedReader br, Reader reader){
        if (br != null){
            try {
                br.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        if (reader != null){
            try {
                reader.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
